 /*
  * Copyright (c) 2021, 2023, yishun.cn All rights reserved.
  *
  */

 import cn.shun.config.SpringConfig;
 import cn.shun.mapper.DbMapper;
 import cn.shun.mapper.EmpMapper;
 import org.junit.jupiter.api.DisplayName;
 import org.junit.jupiter.api.Test;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

 /**
  * <p>Project: MyBatis2023 - SpringDemo
  * <p>Powered by yishun On 2023-01-20 15:31:00
  *
  * @author yishun [2465734101@qq.com]
  * @version 1.0
  * @since 17
  */
 @SpringJUnitConfig(SpringConfig.class)
 public class SpringDemo {
     @Autowired
     DbMapper dm;
     @Autowired
     EmpMapper em;
     @Test @DisplayName("测试一个效果")
     void t1(){
         System.out.println(dm.tbs());
     }

     @Test @DisplayName("查询emp表")
     void t2(){
         System.out.println(em.queryAll());
     }

     @Test @DisplayName("vo")
     void t3(){
         System.out.println(em.showAll());
     }

 }
